import { IsNotEmpty, IsNumber, IsString } from "class-validator";

export class CreateUploadDto {
    @IsNotEmpty() // 验证是否为空
    @IsString() // 验证是否为字符
    name: string;

    @IsNotEmpty()
    @IsNumber()
    age: number;
}
